﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RMS.Utils.MVP;
using RMS.Web.Shell.View;
using RMS.DataAccess.Repositories;
using RMS.DataAccess.Entities;
using RMS.DataAccess.Common;

namespace RMS.Web.Shell.Presenter
{
     public  class SearchInBookedRadiologyPresenter:Presenter<ISearchInBookedRadiologyView>
    {
         RadiologyRequestRepository _radiologyRequestRepository;
         public SearchInBookedRadiologyPresenter(RadiologyRequestRepository radiologyRequestRepository)
         {
             _radiologyRequestRepository = radiologyRequestRepository;
         }
         public RadiologyRequest GetRequest(int requestID) 
         {
             return _radiologyRequestRepository.Find(item => { item.RequestId = requestID; }).Single();
         }
    }
}
